﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;
using System.IO.IsolatedStorage;

namespace HomeBuyerTools.ViewModels
{
    public class Custom
    {
        public static ImageBrush getPivotBackground()
        {
            try
            {
                ImageBrush pivotbackground = new ImageBrush();
                string image = "/Images/Pivot/Background.jpg";
                BitmapImage pivotBackground1 = new BitmapImage(new Uri(image, UriKind.Relative));
                pivotbackground.ImageSource = pivotBackground1;
                return pivotbackground;
            }
            catch (Exception ex)
            {
                string excepmess = "Exception in getPivotBackground Method In IsolatedSettings.cs file.\n\n" + ex.Message + "\n\n StackTrace :- \n" + ex.StackTrace;
                return null;
            }
        }
    }
}